#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int arr[10] = { 0 };
	int arr1[10] = { 0 };
	int i = 0,j=1,n=0;
	while (scanf("%d", &i) != EOF)
	{
		for (j = 0; j < i; j++)
		{
			scanf("%d", &arr[j]);

		}
		for (j = 0; j < i; j++)
		{
			for (n = 0; n < j; n++)
			{
				if (arr[n] < arr[j])
					arr1[j]++;
			}

		}


		for (j = 0; j < i; j++)
		{
			printf("%d ", arr1[j]);

		}
	}

	return 0;
}